import App from './App'

import Vue from 'vue'
import { router, RouterMount } from './router' //路径换成自己的
import store from './store'
import './common/filter'
import mixins from './common/mixins'
import * as api from './api'
import request from '@/common/request.js'
Vue.use(router)
Vue.mixin(mixins)
Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$http = request
Vue.prototype.$api = api

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount() //为了兼容小程序及app端必须这样写才有效果
// #endif
